package com.competitions.videoedithelper.service;

import com.competitions.videoedithelper.entity.ResponseModel;

import javax.servlet.http.HttpServletResponse;

/**
 * @author 盛旭雯
 */
public interface NewVideoService {
    /**
     * 查找某用户上传的视频
     * @param resp http响应
     * @param videoId 原视频id
     * @param pageNum 第几页
     * @param pageSize 页的大小
     */
    void selectVideos(
            HttpServletResponse resp,
            int videoId,
            int pageNum,
            int pageSize
    );

    /**
     * 查找视频
     * @param videoId 视频id
     * @return ResponseModel
     */
    ResponseModel selectVideo(int videoId);

    /**
     * 删除视频
     * @param videoId 视频id
     * @return ResponseModel
     */
    ResponseModel deleteVideo(int videoId);
}
